import request from '../request'

// 钱包明细
export function wallet(params) {
	return request.get('user.wallet/wallet', params)
}

// 我的钱包-租金
export function rentWallet(params) {
	return request.get('user.wallet/rentWallet', params)
}

/**
 * 租金变更列表
 */
export function rentBalanceLog(params) {
	return request.get('user.wallet/rentBalanceLog', params, {
		custom: {
			loading: false
		}
	})
}
/**
 * 租金提现申请列表
 */
export function rentWithdrawalLog(params) {
	return request.get('user.wallet/rentWithdrawalLog', params, {
		custom: {
			loading: false
		}
	})
}

// 租金提现申请
export function rentWithdrawal(data) {
	return request.post('user.wallet/rentWithdrawal', data)
}

// 我的钱包-佣金
export function commissionWallet(params) {
	return request.get('user.wallet/commissionWallet', params)
}

/**
 * 佣金变更列表
 */
export function commissionBalanceLog(params) {
	return request.get('user.wallet/commissionBalanceLog', params, {
		custom: {
			loading: false
		}
	})
}
/**
 * 佣提现申请列表
 */
export function commissionWithdrawalLog(params) {
	return request.get('user.wallet/commissionWithdrawalLog', params, {
		custom: {
			loading: false
		}
	})
}

// 佣金提现申请
export function commissionWithdrawal(data) {
	return request.post('user.wallet/commissionWithdrawal', data)
}

export default {
	rentBalanceLog,
}